import random
NUMBER_OF_CARDS = 52
number = random.randint(0, NUMBER_OF_CARDS - 1)
type,num  = number // 13,number % 13

type_name = "梅花" if type==0 else "红桃" if type==1 else "方块" if type==2 else "黑桃"
num_name = "Ace" if num==1 else "Jack" if num == 11 else "Queen" if num==12 else "King" if num==13 else num
print("你所选的牌是：",type_name,num_name)


